package com.erp.erp_servers.Cost.imp;

import com.erp.erp_dao.Cost.CostApportionmentDao;
import com.erp.erp_entitys.Cost.entity.CostApportionmentEntity;
import com.erp.erp_servers.Cost.CostApportionmentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zjk
 * @version 1.0
 * @description
 * @date 2021-06-14 4:01
 */
@Service
public class CostApportionmentServiceImpl implements CostApportionmentService {

    private final CostApportionmentDao costApportionmentDao;

    public CostApportionmentServiceImpl(CostApportionmentDao costApportionmentDao) {
        this.costApportionmentDao = costApportionmentDao;
    }

    @Override
    public int insertCostApportionmentInfo(CostApportionmentEntity record) {
        return costApportionmentDao.insertSelective(record);
    }

    @Override
    public List<CostApportionmentEntity> getCostApportionmentListByPage(String costCode) {
        return costApportionmentDao.getCostApportionmentListByPage(costCode);
    }

    @Override
    public int deleteByPrimary(CostApportionmentEntity record) {
        return costApportionmentDao.deleteByPrimary(record);
    }
}
